package com.s4j.struts.biz.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="biz_li_otherreson")
public class BizLiOtherreson {
	private Long otherresonId;	
	private PatientDoc patient;
	private String xy_year;
	private String xy_num;
	private String yj_year;
	private String yj_num;
	private Integer jzs;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getOtherresonId() {
		return otherresonId;
	}
	public void setOtherresonId(Long otherresonId) {
		this.otherresonId = otherresonId;
	}
	@OneToOne  
    @JoinColumn(name="patientId",insertable=true,unique=true)
	public PatientDoc getPatient() {
		return patient;
	}
	public void setPatient(PatientDoc patient) {
		this.patient = patient;
	}
	public String getXy_year() {
		return xy_year;
	}
	public void setXy_year(String xy_year) {
		this.xy_year = xy_year;
	}
	public String getXy_num() {
		return xy_num;
	}
	public void setXy_num(String xy_num) {
		this.xy_num = xy_num;
	}
	public String getYj_year() {
		return yj_year;
	}
	public void setYj_year(String yj_year) {
		this.yj_year = yj_year;
	}
	public String getYj_num() {
		return yj_num;
	}
	public void setYj_num(String yj_num) {
		this.yj_num = yj_num;
	}
	public Integer getJzs() {
		return jzs;
	}
	public void setJzs(Integer jzs) {
		this.jzs = jzs;
	}
	
	
	

}
